<!DOCTYPE html>
<html>

<head>
  <script src="https://cdn.bootcss.com/react/16.4.0/umd/react.development.js"></script>
  <script src="https://cdn.bootcss.com/react-dom/16.4.0/umd/react-dom.development.js"></script>
  <script src="https://cdn.bootcss.com/babel-standalone/6.26.0/babel.min.js"></script>
</head>

<body>
  <div id="example"></div>
  // script的类型必须是text/babel
  <script type="text/babel">
     // todo
    </script>
</body>

</html>